//
//  CCBaseCellFile.m
//  ccZone
//
//  Created by 陈小娟 on 2017/12/15.
//  Copyright © 2017年 CC. All rights reserved.
//

#import "CCBaseCellFile.h"

@implementation BaseCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ([reuseIdentifier isEqualToString:BaseCellID]) {
        self = [super initWithStyle:UITableViewCellStyleSubtitle
                    reuseIdentifier:reuseIdentifier];
        if (self) {
            [self setUI_BaseCell];
        }
    }else if ([reuseIdentifier isEqualToString:@"other"]){
        //
    }
    else{
        self = [super initWithStyle:UITableViewCellStyleValue1
                    reuseIdentifier:reuseIdentifier];
        if (self) {
            [self setUI_BaseCell];
        }
    }
    return self;
}

-(void)setBModel:(BaseModel *)bModel {
    _bModel = bModel;
    self.textLabel.text = bModel.cText;
    self.detailTextLabel.text = bModel.cDetail;
    [self.imageView setImage:kTYIMAGE(bModel.cImageLogo)];
    self.accessoryType = bModel.cAccessory;
}


-(void)setUI_BaseCell {
    self.textLabel.font = kCCFont(18);
    self.textLabel.textColor = TY_RGB(34,28,28, 1.0);
    
    self.detailTextLabel.font = kCCFont(14);
    self.detailTextLabel.textColor = TY_RGB(162,162,162, 1.0);
}

@end


@implementation BaseModel



@end



